import request from "@/utils/request";
const BASE_URL = "/depot";

// 分页查询
export function getDepotPageList(data) {
  return request({
    url: BASE_URL + "/getDepotPageList",
    method: "post",
    data,
  });
}
// 仓库列表下拉
export function getDepotList(params) {
  return request({
    url: BASE_URL + "/getDepotList",
    method: "post",
    params,
  });
}
// 仓库所有状态的下拉
export function getDepotListAllStatus(params) {
  return request({
    url: BASE_URL + "/getDepotListAllStatus",
    method: "post",
    params,
  });
}
// 新增
export function addDepot(data) {
  return request({
    url: BASE_URL + "/addDepot",
    method: "post",
    data,
  });
}
// 编辑
export function modifyDepot(data) {
  return request({
    url: BASE_URL + "/modifyDepot",
    method: "post",
    data,
  });
}
// 详情
export function getDepotInfo(data) {
  return request({
    url: BASE_URL + "/getDepotInfo",
    method: "post",
    data,
  });
}
// 删除
export function deleteDepot(data) {
  return request({
    url: BASE_URL + "/deleteDepot",
    method: "post",
    data,
  });
}
// 启用
export function setDepotStatusEnable(data) {
  return request({
    url: BASE_URL + "/setDepotStatusEnable",
    method: "post",
    data,
  });
}
// 禁用
export function setDepotStatusDisable(data) {
  return request({
    url: BASE_URL + "/setDepotStatusDisable",
    method: "post",
    data,
  });
}
